/* =========================================================
   CHEC / BPHC Portal Custom CSS
   Clean header + footer styling
   ========================================================= */

/* ---------- Base ---------- */

body {
  color: #1f2937;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Keep section spacing from feeling cramped */
.sectionBlockLayout {
  box-sizing: border-box;
}

/* ---------- Header ---------- */

.bphc-site-header {
  background: #ffffff;
  border-bottom: 1px solid #dbe3ea;
  padding: 14px 0;
}

.bphc-site-header .row {
  min-height: 64px;
}


/* Header brand row */

.header-brand-wrap{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
}
/* Header logo */
.header-logo-link{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  text-decoration:none;
}

.header-logo{
  max-height:58px;
  width:auto;
  height:auto;
  display:block;
}

.header-site-title{
  display:block;
  font-size:22px;
  font-weight:600;
  color:#1f2937;
  margin-left:14px;
  white-space:nowrap;
  line-height:1.2;
}

/* Header title */

.header-site-title{
  font-size:22px;
  font-weight:600;
  color:#1f2937;
  margin-left:14px;
  white-space:nowrap;
}

.bphc-nav-link.is-active {
  color: #0f4c81;
  background: #f3f6f9;
}

.bphc-nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.bphc-nav-list li {
  margin: 0;
  padding: 0;
}

.bphc-nav-link {
  display: inline-block;
  text-decoration: none;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.2;
}

.bphc-nav-link:hover,
.bphc-nav-link:focus {
  color: #0f4c81;
  background: #f3f6f9;
  text-decoration: none;
}

.bphc-nav-link-primary {
  background: #0f4c81;
  color: #ffffff;
  border: 1px solid #0f4c81;
}

.bphc-nav-link-primary:hover,
.bphc-nav-link-primary:focus {
  background: #0b3b63;
  border-color: #0b3b63;
  color: #ffffff;
}
.bphc-nav-link.active{
  color:#0f4c81;
  font-weight:600;
  border-bottom:2px solid #0f4c81;
}
/* ---------- Footer ---------- */

.bphc-site-footer {
  background: #f7f8fa;
  border-top: 1px solid #dbe3ea;
  padding: 28px 0;
  margin-top: 40px;
}

.bphc-site-footer .row {
  min-height: 72px;
}
/* Footer brand row */

.footer-brand-wrap{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
}

.footer-logo{
  max-height:60px;
  width:auto;
  height:auto;
  display:block;
  margin-right:12px;
}

.footer-title{
  display:block;
  font-size:16px;
  font-weight:600;
  color:#1f2937;
  line-height:1.2;
}


.footer-text {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}

.bphc-site-footer .text-md-end,
.bphc-site-footer .text-end {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

/* ---------- Helpful image safety ---------- */

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Optional cleanup for old template leftovers ---------- */
/* Hide common leftover social icon strip if it still renders */
.bphc-site-footer .entitylist,
.bphc-site-footer .social-share,
.bphc-site-footer .fa-twitter,
.bphc-site-footer .fa-facebook,
.bphc-site-footer .fa-linkedin,
.bphc-site-footer .fa-youtube {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .bphc-site-header {
    padding: 12px 0;
  }

  .bphc-nav-list {
    justify-content: flex-start;
    margin-top: 12px;
    gap: 10px;
  }

.header-logo{
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

 .header-logo{
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

  .bphc-site-footer .col-md-4 {
    margin-bottom: 16px;
  }

  .bphc-site-footer .text-md-end {
    text-align: left !important;
  }
}

@media (max-width: 767px) {
  .bphc-nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .bphc-nav-link,
  .bphc-nav-link-primary {
    width: 100%;
  }
.bphc-nav-link.active {
  color: #0f4c81;
  font-weight: 600;
  border-bottom: 2px solid #0f4c81;
  padding-bottom: 6px;
}
  .bphc-site-footer {
    padding: 24px 0;
  }

  .bphc-site-footer .col-md-4 {
    text-align: left !important;
  }

  .footer-logo {
    margin-bottom: 10px;
  }
}